<?php
include_once("../metier/proposition.dao.php");
include_once("../metier/proposition.class.php");
include_once("../metier/myPDO.class.php");
header("Content-Type: text/plain");
$idQ = (isset($_GET["idQuestion"])) ? $_GET["idQuestion"] : NULL;
$idR = (isset($_GET["idReponse"])) ? $_GET["idReponse"] : NULL;

if ($idQ) {
	$db = new myPDO("127.0.0.1", "root", "", 0);
	$propositionDAO = new PropositionDAO();
	$proposition = new Proposition($idQ, $idR);
	$propositionDAO->deleteProposition($proposition, $db);
} else {
    echo "FAIL";
}

?>